Fix console runaway detection for the smallmem_neg test, following the changes
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Sun, 7 May 2006 13:00:05 +0000 (14:00 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Sun, 7 May 2006 13:00:05 +0000 (14:00 +0100)
to have Console included as part of the Domain object.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/xm-test/tests/create/16_create_smallmem_neg.py

index 5bbaa6f7041f5cafe542f88defb43019d4275dd6..9990add78ce51b1036741216e5916aa6923480df 100644 (file)
@@ -14,11 +14,9 @@ domain = XmTestDomain(extraConfig={"memory": MEM,
 
 try:
     console = domain.start()
+    console.runCmd("ls")
 except DomainError, e:
     FAIL("Unable to start a domain with %i MB" % MEM)
-
-try:
-    console.runCmd("ls")
 except ConsoleError, e:
     if e.reason == RUNAWAY:
         print "Domain with %i MB has runaway console as expected" % MEM